home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 45 (1996-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].zip / MegaDisc 45 (1996-03)(MegaDisc Digital Publishing)(AU)(Disk 1 of 2)[WB].adf / Programs / FLP_by_ANP / Rst.doc < prev    next >
Text File  |  1996-01-23  |  3KB  |  41 lines

  1. *****************************************************************************
  2. * Project Details                                                           *
  3. * ---------------                                                           *
  4. * Project Name:    Rst (reset)                                              *
  5. * Project Version: 1                                                        *
  6. * Copyright:       Anthony N Peck                                           *
  7. * Date:            Sunday 21st May 1995                                     *
  8. *                                                                           *
  9. * Contact:                                                                  *
  10. * 68 Woralul St                                                             *
  11. * Waramanga ACT 2611                                                        *
  12. * Australia                                                                 *
  13. *                                                                           *
  14. * Summary                                                                   *
  15. * -------                                                                   *
  16. * A dinky little program that clears some memory vectors before a reset.    *
  17. * The code is inspired by Chris Hames VirusMemKill which has an option to   *
  18. * reset during times of infections.  There is no real need to clear the     *
  19. * xxxxCapture vectors, but I assume that it would be nice if your system    *
  20. * lock up is due to a virus.  I suggest you could attach this program to    *
  21. * your menu (e.g. via BrowserII) or as a hotkey (e.g. MachIV), and then     *
  22. * if your Shell goes down you still have access to a good boot!  For a      *
  23. * WB solution, check out WBRst.                                             *
  24. *                                                                           *
  25. *****************************************************************************
  26.  
  27. start:  MOVE.L  $04,A6          ; ExecBase to A6
  28.         CLR.L   $32(A6)         ; Clear Warm Capture
  29.         CLR.L   $2E(A6)         ; Clear Cool Capture
  30.         CLR.L   $2A(A6)         ; Clear Cold Capture
  31.         CLR.L   $226(A6)        ; Clear KickTagPtr
  32.  
  33.         LEA     Boot,A5         ; Load boot routine to A5
  34.         JSR     -$1E(A6)        ; Supervisor mode reboot
  35.  
  36. Boot:   LEA     $8000000,A0     ; Load silly memory location to A0
  37.         RESET                   ; Stack pointer set for supervisor mode
  38.         JMP     (A0)            ; Jump and gone...
  39.  
  40.         END                     ; Adios!
  41.